package com.example.pay.service;

import com.example.pay.domain.PayBook;
import com.example.pay.mapper.PayMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: Wu YunXia
 * @Description:
 * @Date: Created in 11:25 2020/12/3
 * @Modefied By:
 */
@Service
public class PayServiceImpl {

    @Resource
    PayMapper payMapper;
    /**
     * @Date 11:42 2020/12/3
     * @desc: 添加
     */
    public int addPay(String openId, List<PayBook> list){

        return payMapper.addPay(openId, list);
    }


    /**
    * @Date 14:17 2020/12/4
    * @desc: 根据日期查询
    */
    public List<PayBook> queryForDate(String date){
        return payMapper.queryForDate(date);
    }


    /**
    * @Date 15:11 2020/12/3
    * @desc:
    */
    public List<PayBook> selectAll(){
        return payMapper.selectAll();
    }
}
